package cn.darkfire.web.POJO;

import java.util.Arrays;

public class User{
    public String name;
    public int age;
    public String[] hobbys;

    public User(String name, int age, String[] hobbys) {
        this.name = name;
        this.age = age;
        this.hobbys = hobbys;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String[] getHobbys() {
        return hobbys;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", hobbys=" + Arrays.toString(hobbys) +
                '}';
    }
}
